<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>reply</title>
    <link rel="stylesheet" href="../css/reply.css" type="text/css"></link>
    <script src="../js/jquery-3.3.1.min.js"></script>
</head>
<body>
<div id="header">
    <div class="top">
        <#if user?exists>
            <div class="left">
                <input id="top_user_login_tag" value="${user.realname}" type="hidden">
                <a href="/loginOut">[退出登录]</a>
                <a href="#">
                    <span class="sp">新消息(<font>0</font>)</span>
                </a>
                <span class="sp userNickName" title="jd">${user.nickname}</span>
                <span class="sp">积分：<font class="myInteger">${user.myinteger}</font></span>
            </div>
        <#else>
            <div class="left">
                <input id="top_user_login_tag" value="" type="hidden">
                <a href="/login">请登录</a> <a href="/register">免费注册</a>
            </div>
        </#if>

        <div class="right">
            <a href="/">首页</a>
            <a href="/common/integralMall.html">积分商城</a>
            <a href="/school.htm">企业合作</a>
            <a href="/userCenter/person">我的易学</a>
            <#if countcart?exists>
                <a href="/userCenter/shoppingCart" class="nz_ts">购物车（
                    <span class="cart_top_num">${countcart}</span>）</a>
            <#else>
                <a href="/userCenter/shoppingCart" class="nz_ts">购物车（
                    <span class="cart_top_num">0</span>）</a>
            </#if>
            <a href="/userCenter/userCollection.html">我的收藏夹</a>
            <a href="http://wpa.qq.com/msgrd?v=3&amp;uin=2636862834&amp;site=qq&amp;menu=yes”"
               target="_blank">联系客服</a>
            <a id="tc" href="#">网站导航 </a>
            <a href="/common/help/help.html">帮助</a>
        </div>
    </div>
</div>

<div id="bottom">
    <div class="left">
        <a href="/"><img src="images/logo.png"></a>
    </div>
    <div class="right">
        <form action="/search">
            <input type="text" class="search" id="queryKeysStr" value="" name="search">
            <input type="submit" value="搜索" class="buttom" id="queryAllButton">
        </form>

        <div class="right_bottom">
            <a href="/searchBypro?product=JAVA">JAVA</a>
            <a href="/searchBypro?product=CCIE">CCIE</a>
            <a href="/searchBypro?product=PS">PS</a>
            <a href="/searchBypro?product=C">C</a>
            <a href="/searchBypro?product=CCNA">CCNA</a>
            <a href="/searchBypro?product=OCA">OCA</a>
            <a href="/searchBypro?product=Android">Android</a>
            <a href="/searchBypro?product=HTML">HTML</a>
            <a href="/searchBypro?product=思科">思科</a>
        </div>
    </div>
</div>

<div id="nav">
    <ul class="menu">
        <li><a href="/">首页</a></li>
        <li><a href="/toOnline">在线学习</a></li>
        <li><a href="/facedirect.htm">面授</a></li>
        <li><a href="/o2o.htm">1对1辅导</a></li>
        <li><a href="/video.htm">视频</a></li>
        <li><a href="/kejian.htm">课件</a></li>
        <li><a href="/identify.htm">考试</a></li>
        <li><a href="/tiku.htm">题库</a></li>
        <li class="now"><a href="/toWD">问答</a>
            <div class="now_top"></div>
        </li>
        <li><a href="/study.htm">求学</a></li>
        <li class="last"><a href="/school.htm">培训学校</a></li>
    </ul>
</div>

<div class="banner">
    <img src="../images/guanggaowei.jpg" height="155" width="1200">
    <span style="min-width: 1200px;"></span>
</div>

<div id="main">
    <div class="left">
        <#if user?exists>
            <div class="top">
                <p class="my_title">我的问答</p>
                <div class="user_div">
                    <img class="user_portrait" src="../images/defaultUserIco.jpg">
                    <span>${user.realname}</span><br>
                    <span>学员<a href="/userCenter/applyForTeacher.html">认证讲师</a></span>
                </div>
                <a class="title_a " href="/question/myQuestion.html">我的提问（<span>${qu}</span>）</a>
                <a class="title_a " href="/question/myAnswer.html">我的回答（<span>${an}</span>）</a>
                <input class="new_question" type="button" value="我要提问">
            </div>
        <#else>
            <div class="top">
                <p class="my_title">我的问答</p>
                <a href="/login">
                    <img class="wd_notLogin" src="../images/wd_notLogin.jpg">
                </a>
                <input class="new_question" type="button" value="我要提问">
            </div>
        </#if>

    </div>
    <div class="right">
        <p class="title">
            <a href="/" style="margin-left:20px;">IT易学网</a> &gt;
            <a href="/toWD">问答</a>
        </p>

        <form class="sh" id="questionForm" action="/wdsearch" method="post">
            <div style="position:absolute;">
                <input type="text" placeholder="请输入要搜索的关键字(40字以内)" name="wdsearch" class="tex placeHolder" id="queryStr"
                       value="">
                <input type="button" class="sear" id="queryQuestion" value="我要搜索">
            </div>
        </form>

        <div class="caina">
            <ul>
                <#if question?exists>
                    <li class="xuans">
                        <p class="title">[${question.product}] ${question.title}</p>
                        <p class="time">${question.user}　分类：${question.product}
                            　被浏览1次　　${question.date?string("yyyy-MM-dd")}</p>
                        <div class="questionContentBox">
                            ${question.question}
                        </div>
                    </li>
                </#if>
            </ul>
        </div>

        <div class="other">

            <ul>
                <#if answers?exists>
                    <#list answers as a>

                        <li class="ans" id="261">
                            <img src="../images/defaultUserIco.jpg" class="ans_user_img" height="48" width="48">
                            <p class="name">${a.anuser}</p>
                            <p class="time">${a.andate?string("yyyy-MM-dd")}</p>
                        </li>
                        <li class="cont">
                            <p>${a.answer}</p>
                        </li>
                        <li class="last">
                            <p class="btn">
                                <a href="javascript:void(0)" id="261">
                                    <img src="../images/wd_zan.jpg" height="36" width="38">
                                </a>
                                <span>${a.hate}</span>
                            </p>
                            <p class="btn">
                                <a href="javascript:void(0)" id="261">
                                    <img src="../images/wd_bian.jpg" height="36" width="38">
                                </a>
                                <span>${a.praise}</span>
                            </p>
                        </li>
                    </#list>
                </#if>
            </ul>

        </div>

        <div class="i_ans">
            <form class="anform" action="/answer">
                <input type="hidden" value="${question.id}" name="quid">
                <p class="i_ans_title">
                    <img src="../images/wd_title_01.jpg" height="34" width="213">
                </p>
                <div class="ke-container ke-container-default" style="width: 826px;">
                    <textarea class="ke-edit-textarea" hidefocus="true" name="answer">
                    </textarea>
                </div>

                <#if user?exists>
                    <p class="mention_p">请认真回答，管理员会额外赠送1-10个积分。<br>
                        <input type="button" class="sub" value="提交回复" id="answerSubmit">
                    </p>
                <#else>
                    <p class="mention_p">您目前还没有登录，请先 <a href="/login">登录</a> |
                        <a href="/register">注册</a>
                    </p><br>
                </#if>

            </form>
        </div>

    </div>
</div>

<script src="js/reply.js"></script>
</body>
</html>